import request from '@/utils/request'

// 根据工序任务ID获取物料需求清单
export function getMaterialRequirements(taskId) {
  return request({
    url: `/ldzl-sc/dispatch/material/${taskId}`,
    method: 'get'
  })
}

// 创建生产派工
export function createDispatch(data) {
  return request({
    url: '/ldzl-sc/dispatch',
    method: 'post',
    data: data
  })
}